package com.nine.mymall.product.fegin;

import com.nine.common.utils.R;
import com.nine.common.vo.SkuHasStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("mymall-ware")
public interface WareFeginService {

    /**
     * 1、R加上泛型
     * 2、直接返回对应的类型
     * 3、自己封装返回结果
     * @param skuIds
     * @return
     */
    @PostMapping("/ware/waresku/hasstock")
    R getSkusHasStock(@RequestBody List<Long> skuIds);

}
